package cn.ddiancan.schedule.feign;

import cn.ddiancan.xddcloud.common.entity.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(contextId = "crmRemoteService", value = CrmRemoteService.targetService)
public interface CrmRemoteService {

    String targetService = "xddcloud-crm-server";

    /**
     * 检测释放时间并释放客户到公海池
     */
    @GetMapping("/crm/customer-opr/releaseCustomerInPubSea")
    CommonResult<String> releaseCustomerInPubSea();

    /**
     * 每日定期生成日报
     */
    @GetMapping("/crm/workReports/regularlyAdd")
    CommonResult<String> regularlyAdd();

    /**
     * 定期修改待签退的记录
     */
    @GetMapping("/crm/visitAndCheckIn/regular")
    CommonResult<String> updateVisitAndCheckInEntityRegular();

    /**
     * 定时查询即将到期的合同
     */
    @GetMapping("/crm/contract/sign-endTime")
    CommonResult<Boolean> upcomingExpiringContracts();
}
